package com.shhic.hhplt.server.model;

/**
 * 有分页查询要求的，包含此信息
 * @author 张文硕
 *
 */
public class PageQuery{
	private long startId = -1,endId = -1;	//开始ID号，终止ID号。使用其中一个即可。不用的写成-1
	private int fetchSize;	//拿多少？
	private static final int DEFAULT_PAGE_SIZE = 20;
	public long getStartId() {
		return startId;
	}
	public void setStartId(long startId) {
		this.startId = startId;
	}
	public long getEndId() {
		return endId;
	}
	public void setEndId(long endId) {
		this.endId = endId;
	}
	public int getFetchSize() {
		if(fetchSize == 0)return DEFAULT_PAGE_SIZE;
		return fetchSize;
	}
	public void setFetchSize(int fetchSize) {
		this.fetchSize = fetchSize;
	}
}
